package com.itHaipeng.mapper;

import com.itHaipeng.object.Brand;
import com.itHaipeng.utils.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
//查询所有
    List<Brand> selectAll();
    //添加品牌
    void insert(Brand brand);
    void deleteByIds(@Param("ids") int[] ids);
    //分页查询
    List<Brand> selectByPage(@Param("begin") int begin,@Param("size") int size);
    //计算总数：
    int totalNumber();
    //模糊查询
    List<Brand> selectByPageCondition(@Param("begin") int begin,@Param("size") int size,@Param("brand") Brand brand);
    int total(@Param("brand") Brand brand);
     void upData(Brand brand);
}
